//
// 此文件是由 JavaTM Architecture for XML Binding (JAXB) 引用实现 v2.2.8-b130911.1802 生成的
// 请访问 <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
// 在重新编译源模式时, 对此文件的所有修改都将丢失。
// 生成时间: 2019.03.12 时间 12:12:00 PM CST 
//


package com.youhome.service.listhub;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;


/**
 * <p>Email complex type的 Java 类。
 * 
 * <p>以下模式片段指定包含在此类中的预期内容。
 * 
 * <pre>
 * &lt;complexType name="Email">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="preference-order" type="{http://rets.org/xsd/RETSCommons}preferenceOrderType"/>
 *         &lt;element name="email-preference-order" type="{http://rets.org/xsd/RETSCommons}preferenceOrderType"/>
 *         &lt;element name="EmailAddress" type="{http://rets.org/xsd/RETSCommons}EmailAddress"/>
 *       &lt;/sequence>
 *       &lt;attribute ref="{http://rets.org/xsd/RETSCommons}privacyType"/>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Email", propOrder = {
    "preferenceOrder",
    "emailPreferenceOrder",
    "emailAddress"
})
public class Email {

    @XmlElement(name = "preference-order")
    @XmlSchemaType(name = "nonNegativeInteger")
    protected int preferenceOrder;
    @XmlElement(name = "email-preference-order")
    @XmlSchemaType(name = "nonNegativeInteger")
    protected int emailPreferenceOrder;
    @XmlElement(name = "EmailAddress", required = true)
    protected EmailAddress emailAddress;
    @XmlAttribute(name = "privacyType", namespace = "http://rets.org/xsd/RETSCommons")
    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
    protected String privacyType;

    /**
     * 获取preferenceOrder属性的值。
     * 
     */
    public int getPreferenceOrder() {
        return preferenceOrder;
    }

    /**
     * 设置preferenceOrder属性的值。
     * 
     */
    public void setPreferenceOrder(int value) {
        this.preferenceOrder = value;
    }

    /**
     * 获取emailPreferenceOrder属性的值。
     * 
     */
    public int getEmailPreferenceOrder() {
        return emailPreferenceOrder;
    }

    /**
     * 设置emailPreferenceOrder属性的值。
     * 
     */
    public void setEmailPreferenceOrder(int value) {
        this.emailPreferenceOrder = value;
    }

    /**
     * 获取emailAddress属性的值。
     * 
     * @return
     *     possible object is
     *     {@link EmailAddress }
     *     
     */
    public EmailAddress getEmailAddress() {
        return emailAddress;
    }

    /**
     * 设置emailAddress属性的值。
     * 
     * @param value
     *     allowed object is
     *     {@link EmailAddress }
     *     
     */
    public void setEmailAddress(EmailAddress value) {
        this.emailAddress = value;
    }

    /**
     * 
     * 					Provide a level of privacy for this phone number. 
     * 				
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getPrivacyType() {
        return privacyType;
    }

    /**
     * 设置privacyType属性的值。
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setPrivacyType(String value) {
        this.privacyType = value;
    }

}
